method-1 / folder-reference
Method 01
Keep it in a folder
The image is a normal file. The page points to it by name.
logo.png
The code
<img src="images/logo.png">
At a glance
One fileNo
OfflineYes
SizeSmall
Good and bad
- HTML stays light; swap the image without touching code
- How almost every website works
- Email only the HTML and the image breaks
Best for
Websites with many images
Websites with many images